cp -r  ./../cityre_rank ~/
cd ~/cityre_rank
#write out current crontab
crontab -l > mycron
#echo new cron into cron file
echo "0 * * * * source ~/.bashrc; ~/cityre_rank/baidurank_selenium.py  >> /tmp/cityrank.log 2>&1 " >> mycron
#install new cron file
crontab mycron
rm mycron
